package com.jic.member.controller.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.manager.request.MestorePageRequest;
import com.jic.manager.response.MestoreResponse;
import com.jic.member.service.MenStoreMemberService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("meStoreMember")
@ApiOperation(value = "店铺会员母子平台信息查询")
@Slf4j
public class MenStoreMemberController {

    @Autowired
    private MenStoreMemberService menStoreMemberService;


    /**
     * @param form
     * @return
     */

    @ApiOperation(value = "查询母子平台店铺会员列表信息")
    @ResponseBody
    @RequestMapping(value = "/queryStoreMemberList")
    public RestResult<PageResult<MestoreResponse>> queryStoreMemberList(@RequestBody MestorePageRequest form) {
        log.info("查询母子平台会员列表信息=========》,{}", form.toString());
        return menStoreMemberService.queryPage(form);
    }

}